package org.jeecg.modules.manage.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.manage.entity.CaishuiBusinessUser;
import org.jeecg.modules.manage.mapper.MCaishuiBusinessUserMapper;
import org.jeecg.modules.manage.service.IMCaishuiBusinessUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 商户用户表
 * @Author: yfkj
 * @Date:   2023-02-08
 * @Version: V1.0
 */
@Service
public class MCaishuiBusinessUserServiceImpl extends ServiceImpl<MCaishuiBusinessUserMapper, CaishuiBusinessUser> implements IMCaishuiBusinessUserService {

    @Resource
    private MCaishuiBusinessUserMapper mCaishuiBusinessUserMapper;


    /**
     * 外键关联分页查询
     * @param page
     * @param queryWrapper
     * @return
     */
    @Override
    public IPage<CaishuiBusinessUser> pageMultiTable(IPage<CaishuiBusinessUser> page, QueryWrapper<CaishuiBusinessUser> queryWrapper) {
        return this.baseMapper.pageMultiTable(page, queryWrapper);
    }

    @Override
    public List<CaishuiBusinessUser> selectByMainId(String mainId) {
        return mCaishuiBusinessUserMapper.selectByMainId(mainId);
    }

}
